package com.woniuxy.service;

import com.woniuxy.bean.DataGridView;
import com.woniuxy.bean.UserVo;
import com.woniuxy.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserService {
    public User login(String telephone, String password);
    public DataGridView<User> findUsersByPage(UserVo userVo);
    public void addUser(User user)throws RuntimeException;
    public void deleteUserById(int id);
    public void deleteBatch(String ids);
    public User findUserById(int id);
    public void assignRole(Integer uid,Integer[] roles);
    public User selectUserByTelephone(String telephone);
    public Set<String> selectRolesNamesByTelephone(String telephone);
    public Set<String> selectPerCodesByTelephone(String telephone);
}
